package com.zhuang.chapter04.innerclass;

public class Outer {
	int m = 0;

	public void test01() {
		System.out.println("外部类成员方法test01");
	}

	class Inner {
		int n = 1;

		public void show01() {
			System.out.println("外部成员变量m=" + m);
			test01();
		}

		public void show02() {
			System.out.println("内部方法show02");
		}
	}

	public void test02() {
		Inner inner = new Inner();
		System.out.println("内部成员变量n=" + inner.n);
		inner.show02();
	}
}